/*CodeBuilder 3.0.1 by 2022-07-13 10:32 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.CodeFactory.DBModel
{
	/// <summary>
	/// 
	/// </summary>
	public partial class TTableRemark : EntityBase
	{
		private string _Id;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public string Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private string _ConfigId;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNConfigId, 1, true)]
		public string ConfigId
		{
			get { return _ConfigId; }
			set
			{
				if (!OnPropertyChanged(CNConfigId, _ConfigId, value)) return;
				_ConfigId = value;
				SetFieldChanged(CNConfigId) ;
			}
		}

		private string _TableType;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNTableType, 2, true)]
		public string TableType
		{
			get { return _TableType; }
			set
			{
				if (!OnPropertyChanged(CNTableType, _TableType, value)) return;
				_TableType = value;
				SetFieldChanged(CNTableType) ;
			}
		}

		private string _TableName;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNTableName, 3, true)]
		public string TableName
		{
			get { return _TableName; }
			set
			{
				if (!OnPropertyChanged(CNTableName, _TableName, value)) return;
				_TableName = value;
				SetFieldChanged(CNTableName) ;
			}
		}

		private bool _IsHide;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNIsHide, 4, true)]
		public bool IsHide
		{
			get { return _IsHide; }
			set
			{
				if (!OnPropertyChanged(CNIsHide, _IsHide, value)) return;
				_IsHide = value;
				SetFieldChanged(CNIsHide) ;
			}
		}

		private string _RemarkSelf;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNRemarkSelf, 5)]
		public string RemarkSelf
		{
			get { return _RemarkSelf; }
			set
			{
				if (!OnPropertyChanged(CNRemarkSelf, _RemarkSelf, value)) return;
				_RemarkSelf = value;
				SetFieldChanged(CNRemarkSelf) ;
			}
		}

		private string _RemarkSrc;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNRemarkSrc, 6)]
		public string RemarkSrc
		{
			get { return _RemarkSrc; }
			set
			{
				if (!OnPropertyChanged(CNRemarkSrc, _RemarkSrc, value)) return;
				_RemarkSrc = value;
				SetFieldChanged(CNRemarkSrc) ;
			}
		}

		private string _Remark;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNRemark, 7)]
		public string Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private DateTime _AddTime;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNAddTime, 8, true)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private DateTime? _LastTime;
		/// <summary>
		/// 
		/// </summary>
		[Entity(CNLastTime, 9)]
		public DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNConfigId = "ConfigId";
		public const string CNTableType = "TableType";
		public const string CNTableName = "TableName";
		public const string CNIsHide = "IsHide";
		public const string CNRemarkSelf = "RemarkSelf";
		public const string CNRemarkSrc = "RemarkSrc";
		public const string CNRemark = "Remark";
		public const string CNAddTime = "AddTime";
		public const string CNLastTime = "LastTime";
		#endregion

	}
}
